/*项目信息管理详情-上下文字样式*/
import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/sq_color.dart';
import 'package:frametrim/utility/toast.dart';

class TextUpPhoneView extends StatelessWidget {
  late String title;
  late String name;
  late String phone;
  TextUpPhoneView(this.title, this.name, this.phone);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(bottom: 15),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(title,
              style: TextStyle(fontSize: 14, color: SQColor.color_60black)),
          SizedBox(height: 5),
          Row(
            children: [
              Text(name,
                  style: TextStyle(fontSize: 14, color: SQColor.color_90black)),
              SizedBox(width: 20),
              GestureDetector(
                onTap: () {
                  ToastUtils.show('拨打电话${phone}');
                },
                child: Text(phone,
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_0052D9)),
              ),
            ],
          ),
        ],
      ),
    );
  }


}
